<div class="footerImag"></div>
<div id="section-home">
    <table cellpadding="0px" cellspacing="0px" border="0px">
        <tr>
            <td width="50%" valign="top">
                <div class="evento_container">
                    <div class="subtitulo">
                        <h3>Eventos y Conversatorios</h3>
                    </div>
                    <ul class="home">
                    <?php foreach ($noticias as $new ) { ?>
                        <li>
                            <a style="vertical-align: top;"  class="urltitulo" href="<?php if($new->getIsExternal()=='1'){ echo $new->getLink();}else{ echo url_for('@evento_detail?id='.$new->getId()); } ?>" <?php if($new->getIsExternal()=='1'){ echo 'target="_blank"'; } ?> style="color: black;font-weight: normal;">
                               <?php echo html_entity_decode($new->getTitle()); ?></a>                               
                            <div style="padding-bottom: 7px;vertical-align: top;"><?php echo html_entity_decode($new->getSummary()); ?></div>
                            <div style="padding-left: 350px;vertical-align: top;">
                                <a  class="url" href="<?php  if($new->getIsExternal()=='1'){ echo $new->getLink();}else{ echo url_for('@evento_detail?id='.$new->getId()); } ?>" <?php if($new->getIsExternal()=='1'){ echo 'target="_blank"'; } ?>><span >Ver m&aacute;s</span></a>
                             </div>
                            </li>
                     <?php }?>
                      </ul>
                </div>
            </td>
            <td width="50%" valign="top">
                <div id="contenedorNovedadesHome">
                   
                    <h3 class="title">Novedades</h3>
                  
                    <?php  foreach ($novedad as $nov) { ?>
                    <div class="home_news">
                     
                        <?php $DS=DIRECTORY_SEPARATOR;?>
                        <?php if(file_exists(sfConfig::get('sf_upload_dir').$DS."novedades".$DS.$nov->getId().".jpg")){ ?>
             
                            <?php  echo  image_tag('/uploads/novedades/'.$nov->getId().'.jpg','size=75x75 style="border:2px solid white;"')?>
                            <div class="text">
                                <a  class="titulo" href="<?php if($nov->getIsExternal()=='1'){ echo $nov->getLink();}else{echo url_for1('@novedad_detail?id='.$nov->getId());} ?>"style="color: black;font-weight: normal;"><?php echo html_entity_decode($nov->getTitulo()); ?></a>
                                <?php echo html_entity_decode($nov->getBrevedescrip()); ?>
                             </div>
                        <?php }else { ?>
                        <div  class="text"  style="padding: 0 5px;width: 90%; ">
                            <a  class="titulo" href="<?php if($nov->getIsExternal()=='1'){ echo $nov->getLink();}else{echo url_for1('@novedad_detail?id='.$nov->getId());} ?>"style="color: black;font-weight: normal;"><?php echo html_entity_decode($nov->getTitulo()); ?></a>
                               <div>
                                   <?php echo html_entity_decode($nov->getBrevedescrip()); ?>
                               </div>
                        </div>                       
                    
			<?php } ?>
                    </div>
                     <?php } ?>

                     <div class="plus">
                            <a href="<?php echo url_for('@novedad_veri2') ?>">Ver m&aacute;s</a>
                    </div>
                    
                </div>
            </td>

        </tr>

    </table>
</div>
